package com.itheima.date8;

import java.time.LocalDateTime;

public class Demo06 {

    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.plusYears(5));
        System.out.println(now.plusMonths(5));
        System.out.println(now.plusDays(5));
        System.out.println(now.plusHours(5));
        System.out.println(now.plusMinutes(5));
        System.out.println(now.plusSeconds(5));
        System.out.println(now.plusWeeks(1));
        System.out.println(now.plusWeeks(-1));


    }
}
